package com.hzw.saas.api.group.bo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.hzw.saas.common.config.serializer.json.StringEncryptSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;


/**
 * <p>
 *
 * </p>
 *
 * @author sonam
 * @since 2021/1/12 10:29
 */
@Data
@ApiModel("群组动态")
public class GroupLogBo implements Serializable {

    private static final long serialVersionUID = -2982263619939630877L;

    @ApiModelProperty(value = "群组动态id")
    private String logId;

    @ApiModelProperty(value = "群组id")
    private String groupId;

    @ApiModelProperty(value = "创建时间")
    private Date logDate;

    @ApiModelProperty(value = "用户真实姓名或用户名")
    @JsonSerialize(using = StringEncryptSerializer.class) // 加密
    private String username;

    @ApiModelProperty(value = "动态内容")
    private String msg;

}
